package com.hspedu.enum_;

public class EnumDetail {
    public static void main(String[] args) {
        System.out.println(Music.CLASSICMUSIC);
        Music.CLASSICMUSIC.playing();
    }
}


interface Play {
    void playing();
}

enum Music implements Play {
    CLASSICMUSIC();

    @Override
    public void playing() {
        System.out.println("播放好听的音乐");
    }

    @Override
    public String toString() {
        return super.toString();
    }
}